class_name InvisibleMark

extends Area2D

var used: bool = false
signal player_stopped

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	body_entered.connect(on_body_entered)
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
	pass
	
func on_body_entered(body: Node2D):
	if body is Ark_Player and not used:
		used = true
		body.controllable = false
		player_stopped.emit()
